package com.xinqing.test.query;

import org.apache.commons.codec.digest.DigestUtils;

/**
 * @Author:CHQ
 * @Date:2020/6/5 15:25
 * @Description
 */
public class GetRedisKey {
    public static void main(String args[]) {
        String sql = "select count(1) as count from dwd.dwd_sms_tml_sign_df";
        Double live = 3.0;
        String cacheKey = DigestUtils.md5Hex(sql + "_" + live);
        System.out.println("缓存key：" + cacheKey);
    }
}
